<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="true">
  <head>  
    <title>葡萄酒/新增</title>
    <%@ include file="../link_script.jsp" %>
    <script type="text/javascript">
    $(function() { 
      $("form").validity(function() {
        $("#wineName").require();
        $("#wineNum").require();
      });
    });
  </script>
  </head>
<body> 
<form action="wine.do?method=addWine_Do" method="post" target="_self">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@ include file="../operate_button_add.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#b5d6e6">       
          <tr>
            <td width="100%" class="STYLE32">新增白酒/葡萄酒</td>
          </tr>
          <tr>
            <td class="STYLE1"><table width="100%" border="0" bordercolor="#b5d6e6" cellpadding="0" cellspacing="0">
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;购买日期: </td>
                <td class="STYLE11"><input type="text" id="wineDate" name="wineDate" value="${wineDate}" size="30" />
                </td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;生产日期: </td>
                <td class="STYLE11"><input type="text" id="productionDate" name="productionDate" value="${wineDate}" size="30" />
                </td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;白酒/葡萄酒名称 : </td>
                <td class="STYLE11"><input type="text" id="wineName" name="wineName" size="30" title="名称葡萄酒名不能为空" />
                &nbsp;<font color="red">*</font>&nbsp;&nbsp;</td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;卖家店铺名称 : </td>
                <td class="STYLE11">
                <select id="shopID" name="shopID" onchange="javascript:change();">
                  <c:if test="${!empty shopList}">
                    <c:forEach items="${shopList}" var="s">
                      <option value="${s.shopID}">${s.shopName}</option>
                  </c:forEach></c:if></select></td>
              </tr>  
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;生产厂商/国家 : </td>
                <td class="STYLE11"><input type="text" id="wineCountry" name="wineCountry" value="" size="30" /></td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;类型 : </td>
                <td class="STYLE11">
                <select id="wineType" name="wineType">
                  <option value="1">白酒</option>   
                  <option value="2">葡萄酒/干红</option>
                  <option value="3">葡萄酒/干白</option>
                  <option value="4">啤酒</option>
                  <option value="5">保健酒</option>
                  <option value="9">其它</option>                   
                </select>/
                <select id="wineVariety" name="wineVariety">
                  <option value="1">标准版</option>   
                  <option value="2">小酒版</option>
                  <option value="3">收藏酒</option>                
                </select>
                </td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;葡萄品种/配料 : </td>
                <td class="STYLE11"><input type="text" id="grapeVariety" name="grapeVariety" size="30" /></td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;级别/规格 : </td>
                <td class="STYLE11"><input type="text" id="wineLevel" name="wineLevel" value="AOC" size="30" />
                /<input type="text" id="specifications" name="specifications" value="500ml" size="30" /></td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;香味/色泽 : </td>
                <td class="STYLE11"><input type="text" id="wineFlavour" name="wineFlavour" value="浓香型" size="30" />
                /<input type="text" id="wineColour" name="wineColour" value="纯净无色" size="30" /></td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;年份/酒精度 : </td>
                <td class="STYLE11"><input type="text" id="wineAlcohol" name="wineAlcohol" value="52" size="30" />&nbsp;%</td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;单价 : </td>
                <td class="STYLE11"><input type="text" id="winePurchasePrice" name="winePrice" value="0.00" size="30" />&nbsp;￥</td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;数量/箱规 : </td>
                <td class="STYLE11"><input type="text" id="wineNum" name="wineNum" value="1" size="30" title="数量不能为空" />
                /<input type="text" id="boxRegulation" name="boxRegulation" value="6" size="30" />&nbsp;瓶</td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;优惠: </td>
                <td class="STYLE11"><input type="text" id="wine1" name="wine1" value="-10" size="30" />
                /<input type="text" id="wine2" name="wine2" value="" size="30" /></td>
              </tr>
              <tr>
                <td class="STYLE51">&nbsp;&nbsp;备注 : </td>
                <td class="STYLE11"><textarea id="wineComment" name="wineComment" cols="90" rows="6" style="font-family:宋体;font-size:12px"></textarea>
                &nbsp;<font color="red">*</font>&nbsp;评论，指专业的品酒师的评论</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td class="STYLE12"><input type="submit" value="提交"/><input type="reset" value="取消"/></td>
          </tr>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@ include file="../no_page.jsp"%>
</table>
</form>
</body>
</html>
